<script>

function deepCopy(source){
    if(source == null) return null
    let target = Array.isArray(source) ? [] : {}
    for(let key in source){
        if(source.hasOwnProperty(key)){
            target[key] = typeof source[key] === 'object' ? deepCopy(source[key]) : source[key]
        }
    }
    return target
}



</script>